<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserLableTypeManage.aspx.cs"
    Inherits="admin_Lable_UserLableType_UserLableManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>自定义标签分类管理</title>
    <link rel="stylesheet" href="../../skin/style.css" type="text/css" />

    <script type="text/javascript" src="../../../js/jquery.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="itemtitle">
            <h3>
                添加自定义标签分类</h3>
        </div>
        <div class="itemtitle_tect">
            <p>
                类别名称：<asp:TextBox ID="txtLableType" runat="server"></asp:TextBox><asp:Button ID="btnSave"
                    runat="server" Text="添加分类" OnClick="btnSave_Click" CssClass="i_button" />
            </p>
        </div>
        <div class="clr">
        </div>
        <div class="talbe_border">
            <asp:DataList ID="dlstUserLableType" runat="server" OnCancelCommand="dlstUserLableType_CancelCommand"
                OnDeleteCommand="dlstUserLableType_DeleteCommand" OnEditCommand="dlstUserLableType_EditCommand"
                OnUpdateCommand="dlstUserLableType_UpdateCommand" RepeatColumns="4" DataKeyField="ID"
                CellPadding="0" CellSpacing="0" CssClass="talbe_list">
                <HeaderStyle CssClass="noya" />
                <HeaderTemplate>
                    <div class="head_ling">
                        自定义标签分类管理</div>
                </HeaderTemplate>
                <ItemTemplate>
                    <%# DataBinder.Eval(Container.DataItem, "Name")%>
                    【<asp:LinkButton ID="lbtnEdit" runat="server" CommandName="edit">编辑</asp:LinkButton>】
                    【<asp:LinkButton ID="lbtnDelete" runat="server" CommandName="delete" Text="删除"></asp:LinkButton>】
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:TextBox ID="txtName" runat="server" Text='<%# Eval("Name")%>'></asp:TextBox>
                    <asp:LinkButton runat="server" CommandName="update" ID="btnUpdate">更新</asp:LinkButton>
                    <asp:LinkButton runat="server" CommandName="cancel" ID="btnCancel">取消</asp:LinkButton>
                    <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" CommandName="delete"></asp:LinkButton>
                </EditItemTemplate>
            </asp:DataList>
        </div>
    </form>
</body>
</html>
